package com.project.frame.common.utils.okhttp;

import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;

/**
 * desc
 *
 * @author cjq
 * @date 2021/12/27
 */
public class TrustAllCerts implements X509TrustManager {

    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType) {
    }

    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType) {
    }

    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return new X509Certificate[0];
    }

}
